package com.zzw.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzw.model.system.SysMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author zzw
 * @since 2023-04-21
 */
@Repository
public interface SysMenuMapper extends BaseMapper<SysMenu> {

//    根据用户id获取菜单权限数据
    List<SysMenu> findMenuListByUserId(@Param("userId") Long userId);
}
